#ifndef PLAYER_H
#define PLAYER_H

#include <QGraphicsObject>
#include <phonon/MediaObject>
#include <phonon/VideoWidget>

class MediaObject;
class VideoWidget;
class KTV;

class Player : public QGraphicsObject
{
public:
    Player(KTV *k);
    void play(QString videoPath);
    void setFullScreen(bool fullScreen);

    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    Phonon::MediaObject *mMedia;
    Phonon::VideoWidget *mVideoWidget;
};

#endif // PLAYER_H
